# 读入2个正整数A和B，1<=A<=9, 1<=B<=10,产生数字AA...A,一共B个A

A,B=input().split(',')
print(A.strip()*int(B))